<?
	require_once "../../_func/__Global.php";
	require_once "../../_func/__Local.php";
	require_once "../../_func/__MysqlFunc.php";
	require_once "../../_func/_MngFunc.php";
	require_once "../../_func/_CodeFunc.php";

	$type = 'A';
	$level = 1;
	$code = null;
	$flag = "item";
	$code_class_name = "subtt17";
	$code_type_name = "품목코드";
	
	$list = & Code_GetSelect($type, $level, $code, false);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:: 농협전북지부 ERP시스템 ::</title>
<link href="/css/layout.css" type="text/css" rel="stylesheet" />
<script src="/js/mng.js"></script>
</head>

<body>
<div id="wrap">
	<!-- header start -->
	<? include("../_layout/head.inc"); ?>
	<!-- header end -->
	
<!-- container start -->
	<div id="container">
	
	<!-- sub menu start -->
	<? include("../_layout/left.inc"); ?>
	<!-- sub menu end -->	
	
        <div class="code_contents">
        	<div class="subtit">
        		<p class="<?echo $code_class_name?>"><span>코드관리 > <?echo $code_type_name?>관리</span></p>
			</div>
            <p class="tableTitle"><span class="b"></span><?echo $code_type_name?></p>
			<div class="BtnList2">
				<p>
				<input type="button" class="btn_excel" onClick="MNG.fncRtnfunc('excel');" title="엑셀로다운받기"/>
                <input type="button" class="btn_print" onClick="MNG.fncRtnfunc('print');" title="출력하기"/>
				</p>
			</div>
<form name=frm id=frm method="POST" action="<?echo $PHP_SELF?>">
            <table cellpadding="0" cellspacing="1" border="0" class="erpTable">
				<colgroup>
					<col width="4%" />
					<col width="48%" />
					<col width="48%" />
				</colgroup>
            	<tr>
					<th><input type="checkbox" id="chkAll" name="chkAll" onClick="fnCheckAll();" value="all" /></th>
                    <th>코드</th>
                    <th>코드명</th>
				</tr>
				
<? include("code.inc"); ?>

            </table>
            <div class="BtnList">
            	<ul>
                	<li><input type="button" class="btn_submit" title="등록" OnClick="MNG.fncRtnfunc('reg','<?echo $flag ?>');"/></li> 
					<li><input type="button" class="btn_modify" title="수정" OnClick="MNG.fncRtnfunc('mod','<?echo $flag ?>');"/></li> 
					<li><input type="button" class="btn_del" title="삭제" OnClick="MNG.fncRtnfunc('del','<?echo $flag ?>');" />
                </ul>
            </div>
        </div>
    </div>   
</form>

	<!-- footer start -->
	<? include("../_layout/footer.inc"); ?>
	<!-- footer end -->
	
</body>
</html>